<h1>
        
		<?php if( 0 < $uid):?>
                <span class="action-span1"><a href="javascript:void(0);">用户管理</a>---<a href="./index.php?c=user&a=userList">用户列表</a>---<a href="javascript:void(0);">邮件列表</a></span>
                <?php else: ?><span class="action-span1"><a href="javascript:void(0);">系统设置</a>---<a href="javascript:void(0);">邮件列表</a></span>
                 <span class="action-span"><a href="/index.php?c=mail&a=mailAdd">发送邮件</a></span>
                <?php endif; ?>
                
	
	<div style="clear:both"></div>
</h1>
<?php if( 0 == $uid):?>
<div class="form-div">
    <form action="./index.php" method="get">
  	<input type="hidden" name="c" value="mail">
  	<input type="hidden" name="a" value="mailList">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     用户ID <input type="text" name="userID" size="15" value="<?=$userID?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>
<?php endif; ?>
<!-- 邮件列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>序号</th>
    <th>发件人名称</th>
    <th>收件人名称</th>
    <th>类型</th>
    <th>邮件内容</th>
    <th>发送时间</th>
    <th>查看状态</th>
    <th>状态</th>
  </tr>
  <?php if($mailList):foreach ($mailList as $k=>$v ):?>
  <tr class="" style="text-align:center">
    <td><?=$v['id']?></td>
    <td><a href="/index.php?c=user&a=userDetail&uid=<?=$v['sendUserName'];?>"><?=$v['sendUserName']?></a></td>
    <td><a href="/index.php?c=user&a=userDetail&uid=<?=$v['AcceptUserID'];?>"><?=$v['AcceptUserName']?></a></td>
    <td><?php if( 1 == $v['mailType']): echo "普通邮件"; elseif( 2 == $v['mailType'] ): echo "物品邮件"; elseif( 3 == $v['mailType'] ): echo "站内信"; endif; ?></td>
    <td><?=$v['describe']?></td>
    <td><?=date("Y-m-d H:i:s",$v['ctime']);?></td>
    <td><?php if( 1 == $v['statu']): echo "未读"; elseif( 2 == $v['statu'] ): echo "已读"; elseif( 3 == $v['statu'] ): echo "草稿"; endif; ?></td>
    <td><?php if( 1 == $v['isDel']): echo "已删除"; else: echo "未删除"; endif; ?></td>
  </tr>
  <?php endforeach;endif;?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>
  
